<%-- 
    Document   : editCorporateCustomerDetails
    Created on : Jan 14, 2014, 7:10:05 PM
    Author     : santosh
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
        <script type="text/javascript">
            var rules=new Array();
            rules[0]='corporate.paymentTypeId|required|Select Corporate';
            rules[1]='phone|mask|0123456789,';
            rules[2]='phone|minlength|10|Phone number must be 10 digit';
            rules[3]='phone|maxlength|32|Phone number must be 10 digit';
        </script>
    </head>
    <body onload="yav.init('form1', rules,'inline');">
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <%@include file="../common/message.jsp" %>
            <form:form id="form1" name="form1" commandName="corporateCustomer" action="editCorporateCustomerDetails.htm" method="POST">
                <fieldset>
                    <legend><spring:message code="title.editCorporateCustomer"/></legend>
                    <table class="formTable">
                        <tr>
                            <td>Employee Code<br/><form:input path="employeeId" cssClass="UserInputMedium"/></td>
                            <td>Customer Name<br/><form:input path="name" cssClass="UserInputLarge"/></td>
                            <td>Phone Number<br/><form:textarea path="phone" maxlength="32" cssClass="UserInputLarge"/>
                                <br/><span id="errorsDiv_phone"></span></td>
                            <td>Email Address<br/><form:input path="email" cssClass="UserInputLarge"/></td>
                        </tr>
                        <tr>
                            <td>Department<br/><form:input path="department" cssClass="UserInputLarge"/></td>
                            <td>Office Location<br/><form:input path="officeLocation" cssClass="UserInputLarge"/></td>
                            <td>Designation<br/><form:input path="designation" cssClass="UserInputLarge"/></td>
                            <td>Corporate<br/><form:select path="corporate.paymentTypeId" cssClass="UserInputLarge">
                                    <form:option value="" label="-"></form:option>
                                    <form:options items="${paymentTypeList}" itemValue="paymentTypeId" itemLabel="paymentTypeName"></form:options>
                                </form:select>
                                <br/><span id="errorsDiv_corporate.paymentTypeId"></span></td>
                        </tr>
                        <tr>
                            <td>Round 1- Score<br/><form:input path="scoreRound1" cssClass="UserInputLarge"/></td>
                            <td>Round 1- Risk<br/><form:input path="riskRound1" cssClass="UserInputLarge"/></td>
                        </tr>
                        <tr>
                            <td>Category A<br/><form:input path="categoryA" cssClass="UserInputLarge"/></td>
                            <td>Category B<br/><form:input path="categoryB" cssClass="UserInputLarge"/></td>
                            <td>Category C<br/><form:input path="categoryC" cssClass="UserInputLarge"/>
                                <input type="hidden" id="paymentTypeId" name="paymentTypeId" value="${paymentTypeId}"/>
                                <input type="hidden" id="customerName" name="customerName" value="${customerName}"/>
                            </td>
                        </tr>
                        <tr>
                            <td><input type="button" id="btnCancel" name="btnCancel" value="Cancel" onclick="document.location.href='../corporate/backToListCorporateCustomer.htm?paymentTypeId=${paymentTypeId}&customerName=${customerName}'" class="userInputFormSubmit"/></td>
                            <td><input type="submit" id="btnSubmit" name="btnSubmit" value="Submit" class="userInputFormSubmit"/></td>
                        </tr>
                        <spring:hasBindErrors name="corporateCustomer">
                            <div class="error">
                                <form:errors path="*"/>
                            </div>
                        </spring:hasBindErrors>
                    </table>
                </fieldset>
            </form:form>
        </div>
    </body>
</html>
